extends Card

func init():
	att.atk = 0
	att.maxHp = 0
	att.cry = 4
	lv = 2
	type = TYPE.CREATURE
	camp = "m_all" 
	name = "Blatepo" 
	tab = "群友" 
	dec = "入场骰出一个骰子.根据点数获得生命.攻击.效果.并将不同的协议加入手牌:1-复生2-死触3-圣盾4-冲锋5-远攻6-碾压"
	tips = ["1点-安保协议，2点-迭代协议，3点-肃正协议，4点-增幅协议，5点-对赌协议，6点-命运协议"] 
	aiTab = "back" 

func _use(card,cell):
	var q = sys.rndRan(1,6);
	match q:
		1:
			addSkill("k_fuSheng")
			for i in range(1):
				var a = getHero().newCard("c_Blatepo1")
				getHero().hand.addCard(a)
		2:
			addSkill("k_siChu")
			for i in range(1):
				var a = getHero().newCard("c_Blatepo2")
				getHero().hand.addCard(a)
		3:
			addSkill("k_shenDun")
			for i in range(1):
				var a = getHero().newCard("c_Blatepo3")
				getHero().hand.addCard(a)
		4:
			addSkill("k_chongFeng")
			for i in range(1):
				var a = getHero().newCard("c_Blatepo4")
				getHero().hand.addCard(a)
		5:
			addSkill("k_yuanGong")
			for i in range(1):
				var a = getHero().newCard("c_Blatepo5")
				getHero().hand.addCard(a)
		6:
			addSkill("k_nianYa")
			for i in range(1):
				var a = getHero().newCard("c_Blatepo6")
				getHero().hand.addCard(a)

	att.maxHp += q
	att.atk += q